package com.belizer.demo.random;

import java.util.Random;

/**
 *
 *
 */
public class Demo {
    public static void main(String[] args) {
        Random random = new Random(1);
        int r = random.nextInt(); // 生成一个随机数

        Random random2 = new Random(1);
        int r2 = random.nextInt(); // 生成一个随机数

        System.out.println("r=" + r);
        System.out.println("r2=" + r2);
    }
}
